package com.petRescueCenter.demo.user.entity.dto;

import com.petRescueCenter.demo.common.enumPackage.LockedEmun;
import com.petRescueCenter.demo.common.enumPackage.SexEmun;
import com.petRescueCenter.demo.common.enumPackage.TypeEmun;
import com.petRescueCenter.demo.user.entity.User;

public class UserDTO {
	private Long id;
	private String name;
	private LockedEmun locked;
	private int adoptTimes;
	private int postTimes;
	private int voluntaryTimes;
	private int attentionTimes;
	private SexEmun sex;
	private String img;
	private TypeEmun type;
	private String introduce;

	public long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public LockedEmun getLocked() {
		return locked;
	}

	public int getAdoptTimes() {
		return adoptTimes;
	}

	public int getPostTimes() {
		return postTimes;
	}

	public int getVoluntaryTimes() {
		return voluntaryTimes;
	}

	public int getAttentionTimes() {
		return attentionTimes;
	}

	public SexEmun getSex() {
		return sex;
	}

	public void setSex(SexEmun sex) {
		this.sex = sex;
	}

	public String getImg() {
		return img;
	}

	public String getIntroduce() {
		return introduce;
	}

	public TypeEmun getType() {
		return type;
	}

	public void setType(TypeEmun type) {
		this.type = type;
	}

	public void setAttentionTimes(int attentionTimes) {
		this.attentionTimes = attentionTimes;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setLocked(LockedEmun locked) {
		this.locked = locked;
	}

	public void setAdoptTimes(int adoptTimes) {
		this.adoptTimes = adoptTimes;
	}

	public void setPostTimes(int postTimes) {
		this.postTimes = postTimes;
	}

	public void setVoluntaryTimes(int voluntaryTimes) {
		this.voluntaryTimes = voluntaryTimes;
	}

	public static UserDTO entityToDto(User entity, UserDTO dto) {
		dto.setAdoptTimes(0);
		dto.setAttentionTimes(0);
		dto.setImg(entity.getImg());
		dto.setIntroduce(entity.getIntroduce());
		dto.setLocked(entity.getLocked());
		dto.setName(entity.getName());
		dto.setPostTimes(0);
		dto.setSex(entity.getSex());
		dto.setId(entity.getId());
		dto.setVoluntaryTimes(0);
		dto.setType(entity.getType());
		System.err.println(dto);
		return dto;

	}

}
